package com.hotai.comment.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.io.Serializable;
import java.util.Date;

@Table(name = "courseware_equipment")
@Data
public class CoursewareEquipment implements Serializable {


	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@TableId(type = IdType.AUTO)
	@Column(name = "id")
	private Integer id;

	@Column(name = "cid")
	private Integer cid;

	@Column(name = "eid")
	private Integer eid;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//存到数据库
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //从数据库
	private Date CreateDate;


}
